# 文件操作
# 相关方法
# open()
# read()
# close()
# file
# file.name
# file.mode
# file.closed


f = open(r'D:\Desktop\certype_dtl_template.csv')
'''
<_io.TextIOWrapper name='D:\\Desktop\\certype_dtl_template.csv' mode='r' encoding='cp936'>
encoding='cp936' windows 中的gbk
'''
print(f)
print(f.name)
f.close()

## print(f.read())
f1 = open(r'D:\Desktop\新建文本文档 (2).txt', 'r', encoding='utf-8')
print(f1)
print(f1.read())

